package com.cq.hd.common.constant;

public class WxConstant {

    // 微信登录授权api
    public static String SNS_ACCESS_TOKEN_API = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=APP_ID&secret=SECRET&code=CODE&grant_type=authorization_code";

    // 微信用户信息api
    public static String SNS_USER_INFO_API = "https://api.weixin.qq.com/sns/userinfo?access_token=ACCESS_TOKEN&openid=OPENID&lang=zh-CN";

    public static String SNS_JSCODE2SESSION_API = "https://api.weixin.qq.com/sns/jscode2session?appid=APP_ID&secret=SECRET&js_code=CODE&grant_type=authorization_code";

    // 获取不限制的小程序码
    public static String GET_WX_CODE_UN_LIMIT_API = "https://api.weixin.qq.com/wxa/getwxacodeunlimit?access_token=ACCESS_TOKEN";

    // 获取接口调用凭据(有效期目前为 2 个小时)
    public static String GET_TOKEN_API = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=APP_ID&secret=SECRET";

    // 微信公众号永久二维码
    public static String WX_PUB_QRCODE_API = "https://api.weixin.qq.com/cgi-bin/qrcode/create?access_token=ACCESS_TOKEN";

    // 微信公众号服务号 菜单创建（POST） 限100（次/天）
    public static String WX_PUB_MENU_CREATE_API = "https://api.weixin.qq.com/cgi-bin/menu/create?access_token=ACCESS_TOKEN";

    // 微信公众号发送模板消息
    public static String WX_PUB_SEND_TEMPLATE_MSG_API = "https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=ACCESS_TOKEN";

    // 获取用户信息
    public static String WX_GET_USER_INFO_API = "https://api.weixin.qq.com/cgi-bin/user/info?access_token=ACCESS_TOKEN&openid=OPENID&lang=zh_CN";

    // 获取关注公众号用户列表
    public static String WX_GET_SUBSIDY_USER_INFO_API = "https://api.weixin.qq.com/cgi-bin/user/get?access_token=ACCESS_TOKEN";

    // 短链
    public static String GET_SHORT_LINK_API = "https://api.weixin.qq.com/wxa/genwxashortlink?access_token=ACCESS_TOKEN";
}

